package entity;

/**
 * 存储商品列表的实体类
 * 包括
 *      组合特卖；
 *      商品标题；
 *      单个商品；
 */
public class GoodsEntity {
    private int goodsType;//商品的类型，1充饥，2解馋，3解渴，4百宝箱
    private int productId;
    private int sellerId;
    private String ivImageUrl;
    private String goodsName; //类型为1或2时为商品名称 类型为0时为标题名称
    private String price;
    private int stock;
    private int salesVolume;
    private int buyNo = 0;
    private int type = 0;//0代表 标题 1代表组合特卖 2代表商品列表
    //当type为0时设置goodsName属性为标题

    //如果是组合特卖 使用这两个属性
    private String ivOtherImageUrl;
    private String tvOtherGoodsName;

    public int getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(int goodsType) {
        this.goodsType = goodsType;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getIvOtherImageUrl() {
        return ivOtherImageUrl;
    }

    public void setIvOtherImageUrl(String ivOtherImageUrl) {
        this.ivOtherImageUrl = ivOtherImageUrl;
    }

    public String getTvOtherGoodsName() {
        return tvOtherGoodsName;
    }

    public void setTvOtherGoodsName(String tvOtherGoodsName) {
        this.tvOtherGoodsName = tvOtherGoodsName;
    }

    public int getBuyNo() {
        return buyNo;
    }

    public void setBuyNo(int buyNo) {
        this.buyNo = buyNo;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getSellerId() {
        return sellerId;
    }

    public void setSellerId(int sellerId) {
        this.sellerId = sellerId;
    }

    public String getIvImageUrl() {
        return ivImageUrl;
    }

    public void setIvImageUrl(String ivImageUrl) {
        this.ivImageUrl = ivImageUrl;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getSalesVolume() {
        return salesVolume;
    }

    public void setSalesVolume(int salesVolume) {
        this.salesVolume = salesVolume;
    }
}
